package pack3;

import zjy.Person;

public class Student extends Person {
    private String xh;

    public Student(String name, String sex, int years, String xh) {
        super(name, sex, years);
        this.xh = xh;
    }

    public Student() {
        super();
        this.xh ="";
    }

    public String getXh() {
        return xh;
    }

    public void setXh(String xh) {
        this.xh = xh;
    }

    @Override
    public String toString() {
        return "student{" +
                "name='" + getName() + '\'' +
                ",xh='" + xh + '\'' +
                ", sex='" + sex + '\'' +
                ", years=" + getYears() +
                '}';
    }
}

